package com.scorpio.appuser.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.TableName;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 发票信息对象 sc_user_invoice
 *
 * @author scorpio
 * @date 2022-01-05
 */
@TableName("sc_user_invoice")
public class UserInvoiceEntity {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    private Long uid;

    //名称
    @NotBlank(message = "无效的公司名称")
    private String name;

    //统一信用代码
    @NotBlank(message = "统一信用代码不能为空")
    private String creditCode;

    //接收邮箱
    @Email(message = "无效的邮箱")
    @NotNull(message = "无效的邮箱")
    private String mailbox;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Long getUid() {
        return uid;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setCreditCode(String creditCode) {
        this.creditCode = creditCode;
    }

    public String getCreditCode() {
        return creditCode;
    }

    public void setMailbox(String mailbox) {
        this.mailbox = mailbox;
    }

    public String getMailbox() {
        return mailbox;
    }
}
